#ifndef PAGEHISEVENTS_H
#define PAGEHISEVENTS_H

#include <QWidget>
#include <QTableWidget>
#include <QHeaderView>
#include <QDateTime>
#include "global_def.h"
#include "globalconfig.h"

namespace Ui {
class PageHisEvents;
}

class PageHisEvents : public QWidget
{
    Q_OBJECT

public:
    explicit PageHisEvents(QWidget *parent = nullptr);
    ~PageHisEvents();
    void hideHintInfo();
    void updateHistory();
public slots:
    void showHisEventHint();
private slots:
    void on_btnBack_clicked();
    void slotItemClicked(QTableWidgetItem*);
    void on_btnNext_clicked();

    void on_btnPrev_clicked();

private:
    Ui::PageHisEvents *ui;
    void InitTable();
    void updateTable();
    void refreshHint();
private:
    QTableWidget *m_pHisEventTable=nullptr;
};

#endif // PAGEHISEVENTS_H
